package com.youngjun.user.pojo.domain;

import java.sql.Timestamp;
import com.youngjun.common.pojo.domain.support.BaseDO;

public class User extends BaseDO<User> {

    private Long id;

    //用户姓名
    private String name;

    private Timestamp gmtCreated;

    private Timestamp gmtModified;

    private Boolean isDeleted;

    //用户名
    private String username;

    //密码
    private String password;

    //手机号
    private String mobile;

    //邮箱
    private String email;

    //头像
    private Long avatarId;

    //地址
    private Long addressId;

    //所属公司
    private Long organizationId;

    private Long departmentId;

    private Boolean isAccountNonExpired;

    private Boolean isAccountNonLocked;

    private Boolean isCredentialsNonExpired;

    //是否启用
    private Boolean isEnabled;

    private String certificate;

    private String failsCount;

    private Timestamp lockedTime;

    private Timestamp nextPasswordModifyTime;

    public Long getId() {
        return id;
    }

    public User setId(Long id) {
        this.id = id;
        return this;
    }
    public String getName() {
        return name;
    }

    public User setName(String name) {
        this.name = name;
        return this;
    }
    public Timestamp getGmtCreated() {
        return gmtCreated;
    }

    public User setGmtCreated(Timestamp gmtCreated) {
        this.gmtCreated = gmtCreated;
        return this;
    }
    public Timestamp getGmtModified() {
        return gmtModified;
    }

    public User setGmtModified(Timestamp gmtModified) {
        this.gmtModified = gmtModified;
        return this;
    }
    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public User setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }
    public String getUsername() {
        return username;
    }

    public User setUsername(String username) {
        this.username = username;
        return this;
    }
    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }
    public String getMobile() {
        return mobile;
    }

    public User setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }
    public String getEmail() {
        return email;
    }

    public User setEmail(String email) {
        this.email = email;
        return this;
    }
    public Long getAvatarId() {
        return avatarId;
    }

    public User setAvatarId(Long avatarId) {
        this.avatarId = avatarId;
        return this;
    }
    public Long getAddressId() {
        return addressId;
    }

    public User setAddressId(Long addressId) {
        this.addressId = addressId;
        return this;
    }
    public Long getOrganizationId() {
        return organizationId;
    }

    public User setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
        return this;
    }
    public Long getDepartmentId() {
        return departmentId;
    }

    public User setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
        return this;
    }
    public Boolean getIsAccountNonExpired() {
        return isAccountNonExpired;
    }

    public User setIsAccountNonExpired(Boolean isAccountNonExpired) {
        this.isAccountNonExpired = isAccountNonExpired;
        return this;
    }
    public Boolean getIsAccountNonLocked() {
        return isAccountNonLocked;
    }

    public User setIsAccountNonLocked(Boolean isAccountNonLocked) {
        this.isAccountNonLocked = isAccountNonLocked;
        return this;
    }
    public Boolean getIsCredentialsNonExpired() {
        return isCredentialsNonExpired;
    }

    public User setIsCredentialsNonExpired(Boolean isCredentialsNonExpired) {
        this.isCredentialsNonExpired = isCredentialsNonExpired;
        return this;
    }
    public Boolean getIsEnabled() {
        return isEnabled;
    }

    public User setIsEnabled(Boolean isEnabled) {
        this.isEnabled = isEnabled;
        return this;
    }
    public String getCertificate() {
        return certificate;
    }

    public User setCertificate(String certificate) {
        this.certificate = certificate;
        return this;
    }
    public String getFailsCount() {
        return failsCount;
    }

    public User setFailsCount(String failsCount) {
        this.failsCount = failsCount;
        return this;
    }
    public Timestamp getLockedTime() {
        return lockedTime;
    }

    public User setLockedTime(Timestamp lockedTime) {
        this.lockedTime = lockedTime;
        return this;
    }
    public Timestamp getNextPasswordModifyTime() {
        return nextPasswordModifyTime;
    }

    public User setNextPasswordModifyTime(Timestamp nextPasswordModifyTime) {
        this.nextPasswordModifyTime = nextPasswordModifyTime;
        return this;
    }
}